﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Snowy
{
    [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))]
    public enum DataBaseType
    {
        PostgreSql,
        SqlServer,
        MySql,
        Oracle,
        Sqlite
    }
    public class AppSettings
    {
        public string JwtKey { get; set; }
        public string JwtIssuer { get; set; }
        public string JwtAudience { get; set; }
        public int JwtExpireHours { get; set; }
        public Dictionary<string, string> ConnectionStrings { get; set; }
        public DataBaseType DataBase { get; set; } = DataBaseType.PostgreSql;
        public int DbContextPoolSize { get; set; } = 128;
    }
}
